﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Left.ascx.cs" Inherits="shop_Left" %>



  <div class="shop_nav">
      <ul>
        <li class="man"><p class="s_name"><asp:Literal ID="litTogoname" runat="server"></asp:Literal></p>
            <a href="logout.aspx">安全退出</a>

        </li>
        <li id="shop_nav_li1" ><a href="/shop/myindex.aspx"><i class="home"></i>首页</a></li>
        <li id="shop_nav_li2"><a href="/shop/myshop.aspx"><i class="information"></i>资料管理</a></li>
        <li id="shop_nav_li3"><a href="/shop/OrderList.aspx"><i class="order"></i>订单管理</a></li>
          <li id="shop_nav_li4"><a href="/shop/FoodSortList.aspx"><i class="menu"></i>菜单管理</a></li>
        <li id="shop_nav_li6"><a href="/shop/settlelist.aspx"><i class="account"></i>财务结算</a></li>
       
      </ul>
        <audio id="neworderAudio"><source src="neworder.mp3" type="audio/mpeg"></audio>
       <input runat="server" id="tbshopid" class="myshopid" style="display: none" />
    </div>



<script src="../javascript/jquery.floatDiv.js"></script>

<script type="text/javascript">

    function getorder() {
        var tid = $(".myshopid").val() + "";
        jQuery.ajax(
         {
             type: "post",
             url: "/Ajax/gettogoorder.aspx",
             data: "tid=" + tid + "&t=" + new Date().getTime(),
             success: function (msg) {
                 //有订单
                 if (msg != "0") {
                     j_ShowWindow(msg, "success");
                     $("#divMsg").floatdiv("rightbottom");
                     $("#neworderAudio")[0].play();
                 }
             }
         })
    }

    $(document).ready(function () {
        getorder();
        setInterval("getorder()", 30000);
    })

</script>
